﻿Imports MvcApplication_VbViewEngine.Views.Shared

Namespace Views.Account
    Public Class Register
        Inherits SiteMaster(Of Object)

        Public Overrides Function RenderContent() As XElement
            Return _
<div>
    <h2>Account Creation</h2>
    <p>
        Use the form below to create a new account. 
    </p>
    <p>
        Passwords are required to be a minimum of <%= ViewData("PasswordLength") %> characters in length.
    </p>
    <%= Xhtml.ValidationSummary() %>

    <%= Xhtml.Form( _
        <div>
            <table>
                <tr>
                    <td>Username:</td>
                    <td>
                        <%= Xhtml.TextBox("username") %>
                        <%= Xhtml.ValidationMessage("username") %>
                    </td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td>
                        <%= Xhtml.TextBox("email") %>
                        <%= Xhtml.ValidationMessage("email") %>
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td>
                        <%= Xhtml.Password("password") %>
                        <%= Xhtml.ValidationMessage("password") %>
                    </td>
                </tr>
                <tr>
                    <td>Confirm password:</td>
                    <td>
                        <%= Xhtml.Password("confirmPassword") %>
                        <%= Xhtml.ValidationMessage("confirmPassword") %>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Register"/></td>
                </tr>
            </table>
        </div> _
        ) %>
</div>

        End Function
    End Class
End Namespace
